<template>
    <div id="app">
        <keep-alive>
            <router-view v-if="$route.meta.keepAlive" class="router"></router-view>
        </keep-alive>
        <router-view v-if="!$route.meta.keepAlive" class="router"></router-view>
    </div>
</template>

<script>
export default {
    name: 'app',
};
</script>
<style lang="scss">
@import "./node_modules/normalize.css/normalize";
#app {
    font-family: "Avenir", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    width: 100%;
    height: 100%;
    min-height: 100%;

    .amap-info-content{
        padding:0;
        pointer-events: auto;
    }

    .amap-info-close,{
        display: none;
    }

    /*.amap-info-contentContainer.bottom-left, .amap-info-contentContainer.bottom-center, .amap-info-contentContainer.bottom-right{
        padding-bottom: 0;
    }*/
}
#nav {
    a {
        font-weight: bold;
        color: #2c3e50;
        font-size: 32px;
        &.router-link-exact-active {
            color: $color-main;
        }
    }
}
h3 {
    font-size: 18px;
}

.router{
  width: 100%;
  height: 100%;
  height: 100vh;
  overflow: scroll;
  position: fixed;
  overflow: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  background: #f0f0f0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #f2f2f2;
}

input{
    background:none;
    outline:none;
    border:none;
}
input:focus{
    border:none;
}

/* felx布局 */
.flex {
	display: flex;
}

/* flex 垂直分散布局 */
.flexBeb {
	align-content: space-between;
}

.flexBei {
	justify-content: space-between;
}

.flexSp {
	justify-content: space-around;
}
.flexEnd{
    justify-content:flex-end
}
.flexJcen{
    justify-content: center;
}
/* flex 居中布局 */
.flexCen {
	align-items: center;
	align-content: center;
	justify-content: center;
}

/* flex 垂直居中布局 */
.flexVc {
	align-items: center;
	align-content: center;
}

.flexHc {
	justify-content: center;
	justify-items: center;
}

/* 文字超出省略 */
.textHd {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 文字两行省略 */
.textHd2 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2
}

/* 文字四行省略 */
.textHd4 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4
}
</style>
